package javaTeste.tInterface;

import java.classe.Interface;
import java.pacote.Pacote;

import junit.framework.Assert;

import org.junit.Before;
import org.junit.Test;


public class TesteCriarInterfaceSimples implements Especificacao {
	Interface agua=null;

	@Before
	public void up() {
		agua= new Interface("Agua"); 
	}
	@Test
	public void nomeDaInterfaceAgua() {
		Assert.assertEquals("Agua",agua.getNome());
		Assert.assertEquals("interface Agua{}", agua.codigoFonte());
	}
	@Test
	public void nomeDoPacoteAgua() {
		agua.setPacote(new Pacote("agua"));
		Assert.assertEquals("package agua",agua.getPacote().codigoFonte());
		Assert.assertEquals("package agua; interface Agua{}",agua.codigoFonte());
		
	}

}